<Window x:Class="NLarge.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ink="clr-namespace:System.Windows.Ink;assembly=PresentationCore"
    xmlns:settings="clr-namespace:NLarge.Properties"
    xmlns:nlargeCC="clr-namespace:NLarge.CustomConverters"
    Name="Root" 
    Title="NLarge" ShowInTaskbar="False"
    Loaded="HandleFormLoad" 
    WindowStyle="None" WindowStartupLocation="CenterScreen"
    WindowState="Maximized" 
    Background="Transparent" AllowsTransparency="True"
    >
    <Window.Resources>
        <settings:Settings x:Key="Settings" />
    </Window.Resources>

  <InkCanvas 
    x:Name="SketchInkCanvas"
    Width="{Binding ElementName=Root,Path=ActualWidth}" 
    Height="{Binding ElementName=Root,Path=ActualHeight}"
    PreviewMouseDown="HandleMouseDown" 
    PreviewKeyDown="HandleKeyDown" 
    PreviewMouseUp="HandleMouseUp"
    PreviewMouseMove="HandleMouseMove" 
    PreviewMouseWheel="HandleMouseWheel"
    ForceCursor="True" 
    Cursor="Arrow" 
    EditingMode="Ink"
    >
    <InkCanvas.DefaultDrawingAttributes>
      <ink:DrawingAttributes 
          x:Name="InkDrawingAttributes"
          Color="Black" 
          Width="2" 
          Height="2" 
          FitToCurve="True"
          />
    </InkCanvas.DefaultDrawingAttributes>

    <Canvas Name="ZoomCanvas">
        <Image x:Name="ZoomImageBrush" />
        <Canvas x:Name="TextCanvas" />
    </Canvas>

        <Grid x:Name="CountdownCanvas" Background="Black" Opacity="{Binding Source={StaticResource Settings}, Path=Default.BreakTimerOpacity}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                Width="{Binding ElementName=Root,Path=ActualWidth}" Visibility="Hidden" 
                Height="{Binding ElementName=Root,Path=ActualHeight}"
              >
            <Label HorizontalContentAlignment="Left" VerticalContentAlignment="Bottom"
                Margin="72,72,72,72" Content=""
                FontFamily="Arial" FontSize="96"
                Foreground="White"
                   x:Name="CountdownLabel"
               />
        </Grid>

    <Label x:Name="DebugLabel" Visibility="Hidden" Content="" FontSize="48" />
    </InkCanvas>
</Window>
